<!-- inc:frame.top -->

<div class="position"><p><!-- inc:position --> &raquo; <a href="{:$mainlink}?file=sysgroup&act=list">管理系统组</a> &raquo; 系统组排序</p><!-- inc:position.fr --></div>

<script src="js/sort.js" type="text/javascript"></script>
<script language="javascript">
 function changese(obj){
  window.location.href="{:$mainlink}?file=sysgroup&act=orderlist";
 }
</script>

<script language="javascript">
function OutSort(form)
{
	var j =  new Array(form.updownlist.options.length);
	for(i=0;i<form.updownlist.options.length;i++)
	{
		j[i] = form.updownlist.options[i].value+"=";
	}
	
	var g = "";
	for(i=0;i<j.length;i++)
	{
		g = g+j[i];
	}
	document.productsTypeActionForm.listlayer.value=g;
}
</script>

<form action="{:$mainlink}?file=sysgroup&act=orderbyok&sysgroupid={:$sysgroupid}" enctype="multipart/form-data" onsubmit="javascript:OutSort(this);" method="post" name="productsTypeActionForm">
<Table class="tableBorder" cellSpacing="1" cellPadding="3" width="100%" align="center" border="0" style="margin-top:10px;">
<Tbody>
	<Tr>
		<Td class="forumRow" vAlign="top" align="middle" height="141">
			<div align="left">
				<table width="100%" border="0">
				<tbody>
					<tr>
						<td width="494" height="14"><div align="center">目前现有类别(中)如下</div></td>
						<td vAlign="center" align="middle"><div align="center">请按<font color="#ff0000">箭头方向</font>单击按钮进行操作</div></td>
					</tr>
					<tr>
						<td height="65">
							<div align="center">
								<select name="updownlist" multiple size="18" id="updownlist" style="width:300px;">
								<!-- $ordermsglist AS $key=>$value -->
								<option class="myinput4" value="{:$value[id]}">{:$value[id]}.{:$value[groupname]}</option>
								<!-- end -->
								</select>
							</div>
						</td>
						<td vAlign="center" align="middle" width="497">
							<div align="center">
							<table>
							<tbody align="center">
							<tr style="height:25px;">
								<td colspan="3"><input class="global_btn myinput2" id="button" onclick="moveOptionFirst(this.form.updownlist)" type="button" value="▲放置最首" name="button" /></td>
							</tr>
							<tr style="height:25px;">
								<td><input class="global_btn myinput2" onclick="moveOptionUp(this.form.updownlist)" type="button" value="↑向上移动" name="button" /></td>
								<td>&nbsp;</td>
								<td><input class="global_btn myinput2" onclick="moveOptionDown(this.form.updownlist)" type="button" value="↓朝下移动" name="button" /></td>
							</tr>
							<tr style="height:25px;">
								<td colspan="3"><input class="global_btn myinput2" id="button" onclick="moveOptionLast(this.form.updownlist)" type="button" value="▼移动最底" name="button" /></td>
							</tr>
							<tr style="height:25px;">
								<td colspan="3"><input class="global_btn myinput2" id="button" onclick="moveOptionUpSideDown(this.form.updownlist)" type="button" value="▲倒序排列" name="button" /></td>
							</tr>
							</tbody>
							</table>
							</div>
						</td>
					</tr>
					<tr>
						<td colSpan="2">
							<div align="center"><font size="2"><input class="global_btn" type="submit" value="确认" name="sortlist" style="width:50px;" onclick="for(i=0;i<updownlist.options.length;i++)updownlist.options(i).selected=true" />&nbsp; <input class="global_btn" id="reset" onclick="qgurl('{:$mainlink}?file=sysgroup&act=list')" type="button" value="返回" style="width:50px;" name="back" /></font></div>
						</td>
					</tr>
					<tr>
						<td colSpan="2"><div class="style1" align="center">单击此确认您目前的排序操作</div></td>
					</tr>
					<tr>
						<td colSpan="2"><div align="center"></div></td>
					</tr>
				</tbody>
				</table>
			</div>
		</Td>
	</Tr>
</Tbody>
</Table>
<input name="listlayer" type="hidden" /><input type="hidden" value="<?=$_GET['ctid']?>" name="ctid" />

</form>

<!-- inc:frame.bottom -->